package com.ruoyi.system.api;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.factory.RemoteQYPyqFallbackFactory;
import com.ruoyi.system.api.factory.RemoteQYUserFallbackFactory;
import com.ruoyi.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;
import java.util.List;

/**
 * 企业微信接口
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteQYPyqService",url = "${go_wx_url}", fallbackFactory = RemoteQYPyqFallbackFactory.class)
public interface RemoteQYPyqService
{
    /**
     * 获取发布的朋友圈记录
     */
    @PostMapping(value = "/sns/get_sns_record", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  get_sns_record(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);
    /**
     *设置朋友圈封面
     */
    @PostMapping(value = "/sns/set_cover", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  set_cover(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);
  /**
     * 设置朋友圈签名
     */
    @PostMapping(value = "/sns/set_sign", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  set_sign(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);

  /**
     * 发布朋友圈
     */
    @PostMapping(value = "/sns/post_sns", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  post_sns(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);
 /**
     *删除朋友圈
     */
    @PostMapping(value = "/sns/delete_sns", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  delete_sns(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);
    /**
     *点赞
     */
    @PostMapping(value = "/sns/sns_like", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  sns_like(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);
    /**
     *评论
     */
    @PostMapping(value = "/sns/sns_comment", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  sns_comment(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);
    /**
     *获取指定朋友圈详情
     */
    @PostMapping(value = "/sns/get_sns_detail", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  get_sns_detail(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);
    /**
     *删除评论
     */
    @PostMapping(value = "/sns/delete_sns_comment", consumes = MediaType.APPLICATION_JSON_VALUE,
            produces = MediaType.APPLICATION_JSON_VALUE)
     String  delete_sns_comment(@RequestBody HashMap<String, List<HashMap<String,Object>>>  map);


}
